package cn.ekuma.security;

import cn.ekuma.security.bean.I_Role;

public interface I_SecurityManager {
	
	void fillSecurityObject(I_SecurityObject toFillObj);

    void init(I_Role role);
    
    boolean hasPermission(int permissionId);
    
    public boolean hasPermissionByName(String name);
    
    boolean hasGroupPermission(int permissionId);
    
    boolean hasePermissionByRole(I_Role role,String permission);
    
    public boolean hasChildPermissionByName(String parentPermission,String childPermisson);
    
    
    //********安全锁相关,
    public boolean lock(String askFor,String target, String targetId,String memo);
    
    public boolean unlock(String askFor,String target, String targetId);
    
    public boolean unlockAllbyAskToTarget(String askFor,String target);
    
    public boolean unlockAllbyAsk(String askFor);
    
}
